export default {}.install = (Vue) => {
  Vue.directive('noRepeatClick', {
    inserted(el) {
      el.addEventListener('click', () => {
        if (!el.disabled) {
          el.disabled = true
          el.style.cursor = 'not-allowed'
          setTimeout(() => {
            el.style.cursor = 'pointer'
            el.disabled = false
          }, 1000)
        }
      })
    },

  });
}